package com.example.springboot.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot.entity.Profit;
import com.example.springboot.mapper.ProfitMapper;



@Service
public class ProfitService extends ServiceImpl<ProfitMapper,Profit> {

    @Autowired
    ProfitMapper profitMapper;

    public List<Profit> selectByPeriod1(String period) {
        QueryWrapper<Profit> queryWrapper=new QueryWrapper<>();
        queryWrapper.like("period",period);
        return profitMapper.selectList(queryWrapper);
    }


}
